//
//  UIButton+init.m
//  UI22_项目框架
//
//  Created by dllo on 15/7/3.
//  Copyright (c) 2015年 蓝天. All rights reserved.
//

#import "UIButton+init.h"

@implementation UIButton (init)

+ (instancetype)buttonWithFrame:(CGRect)frame type:(UIButtonType)type title:(NSString *)title target:(id)target action:(SEL)action
{
    UIButton *b = [UIButton buttonWithType:type];
    b.frame = frame;
    [b setTitle:title forState:UIControlStateNormal];
    [b addTarget:target action:action forControlEvents:UIControlEventTouchUpInside];
    return b;
}


@end
